#include <iostream>
#include <string>
#include <curl/curl.h>
#include <tinyxml.h>
#include "Weather.h"


Weather::Weather(std::string location, std::string day,
		 std::string condition, std::string icon, int temp_low, int temp_high):
  _location(location),
  _day(day),
  _condition(condition),
  _icon(icon),
  _temperature_low(temp_low),
  _temperature_high(temp_high) {

}
  
std::string Weather::getLocation(){
  return _location;
}
std::string Weather::getDay(){
  return _day;
}
std::string Weather::getCondition(){
  return _condition;
}
std::string Weather::getIcon(){
  return _icon;
}
int Weather::getTemperatureLowF(){
  return _temperature_low;
}
int Weather::getTemperatureHighF(){
  return _temperature_high;
}
int Weather::getTemperatureLowC(){
  return (int) (((float)(_temperature_low-32))*(5./9.));
}
int Weather::getTemperatureHighC(){
  return (int) (((float)(_temperature_high-32))*(5./9.));
}
